package com.android.bookgarden.ui;

import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.android.bookgarden.R;
import com.android.bookgarden.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Create by zouqh
 * on 2018/11/29
 **/
public class MyCodeActivity extends BaseActivity implements View.OnClickListener {
    @BindView(R.id.close)
    ImageView close;
    @BindView(R.id.title_text)
    TextView titleText;
    @BindView(R.id.ritgh_icon)
    ImageView ritghIcon;
    @BindView(R.id.ritgh_text)
    TextView ritghText;
    @BindView(R.id.codeImage)
    ImageView codeImage;
    @BindView(R.id.skLayout)
    RelativeLayout skLayout;
    @BindView(R.id.recycler)
    RecyclerView recycler;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_my_code;
    }

    @Override
    protected void initView() {
        codeImage.setOnClickListener(this);
        close.setOnClickListener(this);
        titleText.setText("我的收款二维码");
        skLayout.setOnClickListener(this);

    }

    @Override
    public void onRequestPermissions(String str, boolean z) {

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.close:
                finish();
                break;

            case R.id.skLayout:
                startActivity(CollectionRecordsActivity.class);
                break;

        }
    }


}
